package com.jm.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("shopping_cart")
public class ShoppingCart {
    @TableId
    private String id;

    private String name;

    private String image;

    private Long userId;

    private Long toyId;

    private Long setmealId;

    private Integer number;

    private BigDecimal amount;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT,exist = false)
    private LocalDateTime updateTime;
    @TableField(fill = FieldFill.INSERT,exist = false)
    private Long createUser;
    @TableField(fill = FieldFill.INSERT,exist = false)
    private Long updateUser;
}
